﻿using Probel.NDoctor.Statistics.Console.Menus;
using Probel.NDoctor.Statistics.Console.Properties;

namespace Probel.NDoctor.Statistics.Console.Commands
{
    internal class MySqlShowconfig : Command
    {
        protected override void SafeExecute()
        {
            var s = Settings.Default;

            Output.WriteLine("Configuration overview:");
            Output.EmptyLine();
            Output.WriteLine("Server    : {0}", s.Server);
            Output.WriteLine("Database  : {0}", s.Database);
            Output.WriteLine("User name : {0}", s.User);
            Output.WriteLine("Password  : {0}", s.Password);
        }
    }
}
